package com.mashibing.tank;


/**
 * Copyright (C) 2024 - 2024 Jasonakeke， Inc. All Rights Reserved
 *
 * @Desc :
 * @Time : 2024/10/2 15:51
 * @Author : Code_By_Jasonakeke
 * @Email : 2284037977@qq.com
 * @Class : Main
 * @IDE : IntelliJ IDEA
 */
public class Main {

	public static void main(String[] args) throws InterruptedException {
		TankFrame tankFrame = new TankFrame();

		int  initTankCount = Integer.parseInt((String) PropertyMgr.get("initTankCount"));

		// 初始化敌方坦克
		for (int i = 0; i < initTankCount; i++) {
			tankFrame.tanks.add(new Tank(50 + i * 80, 200, Dir.DOWN, Group.BAD, tankFrame));
		}
		// new Thread(() -> new Audio("audio/war1.wav").loop()).start();
		while (true){
			Thread.sleep(50);
			tankFrame.repaint();
		}
	}
}
